﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />

<!-- blueprint CSS framework -->
<!--<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />-->
<!--<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />-->
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
<![endif]-->

<!--<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />-->
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/default.css" />
<!-- <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/menu.css" />  -->

<script type="text/javascript" src="highslide/highslide.js"></script>
<script type="text/javascript" src="highslide/highslide.config.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="highslide/highslide.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="highslide/highslide-ie6.css" />
<![endif]-->

<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>
<!--главное меню -->
<a href="javascript:scroll(0,0);" style = " position:fixed; bottom:25px; right:100px" >НАВЕРХ</a>  
<div id="header">
<!-- скругление углов -->
<ul id="left"></ul>
<ul id="right"></ul>
<!-- форма поиска --> 
    <ul id="menu">  
    <form id="search" method="get" action="#">
    <fieldset>
    <input name="input1" type="text" id="input1" />
    <input name="input2" type="submit" id="input2" value="Search" />
    </fieldset>
    </form>     
   <!-- вывод главного меню -->
    <?php $this->widget('zii.widgets.CMenu',array(
        'items'=>array(
            array(
            'label'=>'Главная', 
            'url'=>array('/site/index'),
              ),
            array(
            'label'=>'Учебники', 
            'url'=>array('/'),
            //подпункты учебника
            'items'=>array(
            array('label'=>'учебник1','url'=>'/'),
            array('label'=>'учебник2','url'=>'/'),
            array('label'=>'Учебник3','url'=>'/'),
            ), 
        ),
            array('label'=>'О нас', 'url'=>array('/about')),
            array('label'=>'Контакты', 'url'=>array('/contact')), 
			array(
            'label'=>'Новини', 
            'url'=>array('/news/index'),
            //подпункты "новини"
            'items'=>array(
            array('label'=>'подпункт1','url'=>'/'),
            array('label'=>'подпункт2','url'=>'/'),
            array('label'=>'подпункт3','url'=>'/'),
            ),
        ),     
            /*array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
            array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest),*/
        ),
        'htmlOptions' => array('class' => 'menu'),
    )); ?> 
   </ul>
<!-- левое древовидное меню -->
</div>
<div id="content">
    <div id="colOne">
        <div id="logo"></div>
        <div class="box">
            <?php
             if(isset($_GET['topic'])) 
                 $collapse = false;
             else 
                $collapse = true;
             
                $this->widget(
                    'CTreeView',
                        array(
                            'animated'=>'fast', //quick animation
                            'collapsed' => $collapse,
                            'url' => array('site/ajaxFillTree'),
                            'htmlOptions'=>array(
                            'class'=>'menu_list treeview',
                        )
                    )
            );
			
            ?> 
        </div>
        <?php if(isset($this->breadcrumbs)):?>
        <?php 
        /*$this->widget('zii.widgets.CBreadcrumbs', array(
        'links'=>$this->breadcrumbs,
        )); */?><!-- breadcrumbs -->
        <?php endif?>
    </div>
    <div id="colTwo">
        <?php echo $content; ?> 
    </div>
</div><!-- page -->

<div id="footer">
    <ul id="left2">
        <ul id="right2"></ul>
        <br />
        <p>ХНТУСГ &copy; <?php echo date('Y'); ?> <br/></p>
    </ul>
</div>
</body>
</html>